package com.aaa.controller;

import com.aaa.entity.CMS_Subject;
import com.aaa.service.impl.CMS_SubjectServiceImpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("cms_subject")
public class CMS_SubjectController {
    @Resource
    CMS_SubjectServiceImpl cms_subjectService;

    @RequestMapping("cms_subjectList")
    public List<CMS_Subject> cms_subjectList(){
        return cms_subjectService.list();
    }

}
